<?php
session_start();
require('../conn.php');
require('../functions.php');
require('admin.php');
$id=guolv($_GET['id']);
$row=$mysql->query("select * from `jifen2` where `id`='{$id}'");
$_pic=str_replace('[weixin]','',$row[0]['pic']);
if(strpos($row[0]['pic'],"[weixin]")!==0){$_pic=$site.$row[0]['pic'];}



if($_POST){

$wuliu=guolv($_POST['wuliu']);

$endtime=guolv($_POST['endtime']);
$aid=guolv($_POST['id']);
$mysql->execute("update `jifen2` set `wuliu`='{$wuliu}' where `id`='{$aid}'");echo "<script>alert('修改成功');location.href='edit_article4.php?id={$aid}'</script>";exit;}?>

<?php include('head.php')?>    
	<link rel="stylesheet" href="../editor/themes/default/default.css" />
	<link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	<script src="static/jquery.js" type="text/javascript"></script> 
	<script charset="utf-8" src="../editor/kindeditor.js"></script>
	<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>
    <style type="text/css">
<!--
.STYLE2 {
	font-size: 16px;
	color: #FF0000;
}
.STYLE3 {color: #FF0000}
-->
    </style>
    <div class="container-fluid">
        
        <div class="row-fluid">
		<?php
 include('left.php');?>
<div class="span9">
            <h1 class="page-title">添加物流单号</h1>
<!--			
<div class="btn-toolbar">
    <a href="#myModal" data-toggle="modal" class="btn">Delete</a>
  <div class="btn-group">
  </div>
</div>
-->
<div class="well">
   
    <div id="myTabContent" class="tab-content">
	<div class="pull-right"></div>
      <div class="tab-pane active in" id="home">	  
		<form id="tab" action="edit_article4.php" method="post">
		<input type="hidden" name="id" value="<?php echo $id?>">
        <label>物流单号</label>
        <input type="text" value="<?php echo $row[0]['wuliu']?>" style="width:200px" name="wuliu" />
        <span class="STYLE3">例如：申通快递8653266853
        <label></label>
		  </span>
        <button class="btn btn-primary STYLE2"> <strong>提交</strong></button>
		</form>
      </div>
  </div>
</div>

<div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Delete Confirmation</h3>
  </div>
  <div class="modal-body">
    
    <p class="error-text"><i class="icon-warning-sign modal-icon"></i>Are you sure you want to delete the user?</p>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
    <button class="btn btn-danger" data-dismiss="modal">Delete</button>
  </div>
</div>

        </div>
    </div>
    

    
    <footer>
        <hr>
        
        <p class="pull-right"><!--power by right--></p>
        
        
        <p><!--power by --></p>
    </footer>
    

    

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="lib/bootstrap/js/bootstrap.js"></script>
  </body>
</html>